import http from '@/api'

// * 获取搜索历史列表
export const SearchListApi = (uid) => http.get(`/video/searchHistory?uid=${uid}`)

// * 添加搜索历史
export const addSearchListApi = (data) => http.post(`/video/addsearch`,data)

// * 删除搜索历史
export const deteleSearchListApi = (data) => http.delete(`/video/detelesearch`,data)

// * 获取搜索列表
export const Search = (title) => http.get(`/video/search/?title=${title}`)